import request from '@/utils/request'

// 查询服务商提现列表
export function listWithdraw(query) {
  return request({
    url: '/agent/withdraw/list',
    method: 'get',
    params: query
  })
}

// 查询服务商提现详细
export function getWithdraw(id) {
  return request({
    url: '/agent/withdraw/' + id,
    method: 'get'
  })
}

// 新增服务商提现
export function addWithdraw(data) {
  return request({
    url: '/agent/withdraw',
    method: 'post',
    data: data
  })
}

// 修改服务商提现
export function updateWithdraw(data) {
  return request({
    url: '/agent/withdraw',
    method: 'put',
    data: data
  })
}

// 删除服务商提现
export function delWithdraw(id) {
  return request({
    url: '/agent/withdraw/' + id,
    method: 'delete'
  })
}

// 导出服务商提现
export function exportWithdraw(query) {
  return request({
    url: '/agent/withdraw/export',
    method: 'get',
    params: query
  })
}

// 服务商提现审核
export function withdrawaudit(data) {
  return request({
    url: '/agent/withdraw/audit',
    method: 'post',
    data:data
  })
}

// 服务商提现审核
export function xxpay(id) {
  return request({
    url: '/agent/withdraw/xxpay/'+ id,
    method: 'post'
  })
}

// 服务商提现审核
export function wxpay(id) {
  return request({
    url: '/agent/withdraw/wxpay/'+ id,
    method: 'post'
  })
}
